//
//
//
#ifndef __ROCKETPORTOCOLREGISTER_H
#define __ROCKETPORTOCOLREGISTER_H

#include "RocketRequest.h"
#include "RocketResponse.h"
#include "RocketCommon.h"

class CRocketRequestRegister : public CRocketRequest
{
public:
	CRocketRequestRegister(MNetworkEventObervser* aObserver);
	~CRocketRequestRegister();
	
	TBool	Encode();
	void 	SetInfo(const TDesC& aName, const TDesC& aNickName, const TDesC& aToken);
	
private:
	TBuf<20>	iUserName;
	TBuf<20>	iNickName;
	TBuf<20>	iToken;
};

class CRocketResponseRegister : public CRocketResponse
{
public:
	CRocketResponseRegister();
	~CRocketResponseRegister();
	
public:
	void OnStartElementL(const Xml::RTagInfo& aElement,
								const Xml::RAttributeArray& aAttributes,
								TInt aErrorCode);
	
	void OnEndElementL(const Xml::RTagInfo &aElement, 
										TInt aErrorCode);	
};

#endif
